package cn.lijiajia3515.cairo.core.business;

import lombok.Getter;
import lombok.experimental.Accessors;

@Getter
@Accessors(chain = true, fluent = true)
public enum AuthBusiness implements Business {
	/**
	 * 凭证错误
	 */
	Bad("凭证错误"),

	/**
	 * 凭证必须
	 */
	Required("访问凭证-缺失"),


	/**
	 * 访问
	 */
	Expired("访问凭证-已过期"),

	/**
	 * Nonce Expired
	 */
	NonceExpired("Nonce Expired"),

	/**
	 * 权限不足
	 */
	Denied("权限不足"),

	;

	private final String code = "Auth".concat(name());
	private final String message;

	AuthBusiness(String message) {

		this.message = message;
	}
}
